Push APIを試す
npmパッケージを作る
1.
$ npm init
2.
$ npm install express
3.
$ npm install web-push
4. app.ts
5. index.html
問題発生
インストールした@types/expressのせいで動かない This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
インストールされた@types/expressには、 export = eという行が含まれている
export default e に書き換えると動く